var namecardlistName=document.URL.split("=")[1];

var vm = new Vue({
    el:"#nameCardList",
    data:{
        nameCardList:'',
    },
    // 方法存放区
    methods: {

        getAllNameCardListInfo() {
            axios({
                method: 'POST',
                url: 'http://localhost:8099/nameCardList/getViewInfo',
                data: {
                    "namecardlistName": namecardlistName,
                }
            }).then(function (result) {
                vm.nameCardList = result.data;
                // console.log(vm.nameCardList)
            }).catch(function (reason) {
                console.log(reason);
            })
        }

    },

    //页面加载完自动执行
    mounted(){
        this.getAllNameCardListInfo();
    }

})